﻿using UnityEngine;
using System.Collections;

public class RoomManager : MonoBehaviour {
	
	public UILabel [] playerName ;
	public GameObject [] playerReady ;
	
	
	// Use this for initialization
	void Start () {
		foreach( GameObject go in playerReady)
			NGUITools.SetActive(go, false);
	}
	
	
	void OnRoomExit()
	{
		glog.debug ("OnRoomExit");
	}
	
	void OnReady()
	{
		glog.debug ("OnReady");
	}
	
	public void SetPlayerName(int index, string nickName)
	{
		playerName[index].text = nickName;
	}
	
	public void SetPlayerReady(int index, bool ready)
	{
		NGUITools.SetActive(playerReady[index], true);
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
